﻿using UnityEngine;
using System.Collections;

namespace MyIdolUIFrameWork
{
    public class UIInit : MonoBehaviour
    {
        private UIManager uiManager;

        void Start()
        {
            Object obj = FindObjectOfType(typeof(UIManager));
            if (obj != null)
                uiManager = obj as UIManager;
            if (uiManager == null)
            {
                GameObject manager = new GameObject("UIManager");
                uiManager = manager.AddComponent<UIManager>();
            }
            uiManager.InitializeUIs();
            uiManager.SetUIShow();
        }
        void Update()
        {
            //int currWorld = LevelController.GetCurrentWorld();
            //int currLevel = LevelController.GetCurrentLevel(currWorld);
            //MyDebug.Add("currWorld", currWorld);
            //MyDebug.Add("currLevel", currLevel);
        }

    }
}
